package Java继承;

public class Person2 {
    private String id;
    private String name;

    public Person2(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public void showInfo() {
        System.out.print("人员信息：" + id + "，" + name);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}